import { ref, type Ref } from 'vue'
import { useRoute } from 'vue-router'

export const useMyorder = () => {
    const route = useRoute()
    let active: any = ref(0)
    active = Number(route.query.index)
    //返回上一级
    const onClickLeft = () => history.back()
    return { onClickLeft, active }
}
